Skip to main content

ITypeSerializer<T>

Assembly: ServiceStack.Text.dll
View Source
Declaration
public interface ITypeSerializer<T>

Methods

CanCreateFromString(Type)

Determines whether this serializer can create the specified type from a string.

View Source
Declaration
bool CanCreateFromString(Type type)
Returns

System.Boolean: true if this instance [can create from string] the specified type; otherwise, false.

Parameters
TypeNameDescription
System.TypetypeThe type.

|

DeserializeFromString(String)

Parses the specified value.

View Source
Declaration
T DeserializeFromString(string value)
Returns

<T>

Parameters
TypeNameDescription
System.StringvalueThe value.

|

DeserializeFromReader(TextReader)

Deserializes from reader.

View Source
Declaration
T DeserializeFromReader(TextReader reader)
Returns

<T>

Parameters
TypeNameDescription
System.IO.TextReaderreaderThe reader.

|

SerializeToString(T)

Serializes to string.

View Source
Declaration
string SerializeToString(T value)
Returns

System.String

Parameters
TypeNameDescription
<T>valueThe value.

|

SerializeToWriter(T, TextWriter)

Serializes to writer.

View Source
Declaration
void SerializeToWriter(T value, TextWriter writer)
Parameters
TypeNameDescription
<T>valueThe value.

| | System.IO.TextWriter | writer | The writer.

|